package base

import "payme3000/framework/config_center"

type (
	// IConfig 业务配置模块
	IConfig interface {
		IModule
		ISetAppConf
		ISetConfigCenter
		placeholderConfig()
	}

	// Config IConfig的基础实现
	Config struct {
		Module

		AppConf      *AppConf                    // 启动配置
		ConfigCenter *config_center.ConfigCenter // 配置中心
	}
)

func (c *Config) SetAppConf(appConf *AppConf) {
	c.AppConf = appConf
}

func (c *Config) SetConfigCenter(configCenter *config_center.ConfigCenter) {
	c.ConfigCenter = configCenter
}

func (c *Config) placeholderConfig() {}
